package com.park.service.impl.question;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.question.QuestionModel;
import com.park.client.service.question.QuestionService;
import com.park.dao.question.QuestionMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("questionService")
public class QuestionServiceImpl extends BaseServiceImpl<QuestionModel> implements QuestionService {
	
	@Autowired
	private QuestionMapper questionMapper;

	@Override
	public boolean insert(QuestionModel record) {
		return questionMapper.insert(record)==1 ;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return questionMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(QuestionModel record) {
		return questionMapper.insertSelective(record)==1;
	}
	@Override
	public QuestionModel selectByPrimaryKey(Long id) {
		return questionMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(QuestionModel record) {
		return questionMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(QuestionModel record) {
		return questionMapper.updateByPrimaryKey(record)==1;
	}
	@Override
	public List<QuestionModel> selectAll() {
		return questionMapper.selectAll();
	}
	@Override
	public List<QuestionModel> selectPagination(QuestionModel t) {
		return questionMapper.selectPagination(t);
	}
	@Override
	public Integer selectTotal(QuestionModel t) {
		return questionMapper.selectTotal(t);
	}
	

}
